#define  _CRT_SECURE_NO_WARNINGS 1
#include<list>
#include<iostream>

using namespace std;

void test01()
{
	list<int> l1 = { 1,2,2,3,3,4 };
	for (auto l : l1)
	{
		cout << l << " " ;
	}
	cout << endl;
	//l1.unique();
	l1.remove(2);
	for (auto l : l1)
	{
		cout << l << " " ;
	}
}


int main()
{
	test01();
}